<?php
namespace Common\Model;
use Common\Model\AiModel;
class BannerModel extends AiModel {
    public function blist($num){
        $banner=M('banner')->field('id,imgurl,linkurl,title')->limit($num)->select();
        return $banner;
    }
}